package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zsk
 * @create 2022-02-27-21:42
 */
@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    //根据姓名查询用户信息
    Employee findByUserName(String username);

    //查询用户列表
    List<Employee> findByName(String name);

    //添加用户信息
    void save(Employee employee);

    //根据id查询用户信息
    Employee findById(Long id);

    //修改用户数据
    void update(Employee employee);
}
